import Vue from 'vue';
import VueRouter from 'vue-router';

import { constantRouterMap } from './routes';
Vue.use(VueRouter);

const router = new VueRouter({
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap,
});

export default router;
